package com.maxuxu.scihome.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @className: Document
 * @author: Maxuxu
 * @date: 2022/7/1 22:05
 * @description: 文档的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@TableName("scihome.document_inf")
public class Document {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private long docid;
    private String title;
    private String filename;
    private String remark;
    private Date createDate;
    @TableField(exist = false)
    private User user;
}
